package com.atguigu.d_continue;

public class Demo1 {
    public static void main(String[] args) {
        //给循环取别名
        loop : for (int i = 0; i < 10; i++) {
           switch (i){
               case 0 :
                   System.out.println("Hello");
                   break loop;

               case 1:
                   System.out.println("World");
                   break ;
           }
        }
    }
}
